﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="NhaCungCapForm.aspx.cs" Inherits="Web.Admin.NhaCungCapForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="panel-heading">
    <h3 class="panel-title"><b>Thông tin nhà cung cấp</b></h3>
</div>
<div class="panel-body">
    <div class="form-horizontal" role="form">
        <asp:HiddenField ID="hdfMaNhaCungCap" runat="server" />
        <div class="form-group">
        <label for="txtTenNhaCungCap" class="col-sm-2 control-label">Tên nhà cung cấp
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                ErrorMessage="Hãy nhập Tên nhà cung cấp" 
                ControlToValidate="txtTenNhaCungCap" ForeColor="Red" Display="Dynamic">*</asp:RequiredFieldValidator>
        </label>
        <div class="col-sm-10">
            <asp:TextBox ID="txtTenNhaCungCap" runat="server" CssClass="form-control" placeholder="Tên nhà cung cấp"></asp:TextBox>
        </div>
        </div>
        <div class="form-group">
        <label for="txtDiaChi" class="col-sm-2 control-label">Địa chỉ</label>
        <div class="col-sm-10">
            <asp:TextBox ID="txtDiaChi" runat="server" CssClass="form-control" placeholder="Địa chỉ"></asp:TextBox>
        </div>
        </div>
        <div class="form-group">
        <label for="txtDiaChi" class="col-sm-2 control-label">Điện thoại
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                ErrorMessage="Hãy nhập Điện thoại" 
                ControlToValidate="txtDienThoai" ForeColor="Red" Display="Dynamic">*</asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                ErrorMessage="Hãy nhập điện thoại đúng định dạng" Display="Dynamic" 
                ControlToValidate="txtDienThoai" ForeColor="Red" ValidationExpression="^[0-9\s]{9,15}">*</asp:RegularExpressionValidator>
        </label>
        <div class="col-sm-10">
            <asp:TextBox ID="txtDienThoai" runat="server" CssClass="form-control" placeholder="Điện thoại"></asp:TextBox>
        </div>
        </div>
        <div class="form-group">
        <label for="txtEmail" class="col-sm-2 control-label">Email
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
                ErrorMessage="Hãy nhập Email" 
                ControlToValidate="txtEmail" ForeColor="Red" Display="Dynamic">*</asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ErrorMessage="Hãy nhập đúng định dạng email" ControlToValidate="txtEmail" 
                Display="Dynamic" ForeColor="Red" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
        </label>
        <div class="col-sm-10">
            <asp:TextBox ID="txtEmail" runat="server" CssClass="form-control" placeholder="Email"></asp:TextBox>
        </div>
        </div>
        <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <asp:LinkButton ID="btnSave" CssClass="btn btn-primary" runat="server" 
                onclick="btnSave_Click">Lưu</asp:LinkButton>
            <a href="NhaCungCapManager.aspx" class="btn btn-default">
            Hủy bỏ
            </a>
        </div>
        </div>
        <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
        </div>
        </div>
    </div>
</div>
</asp:Content>
